package com.kly.user.controller;


import com.kly.user.serviceImpl.UploadUserService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("upload")
public class UploadUserController {
    @Resource
    UploadUserService uploadUserService;

    @ResponseBody
    @RequestMapping(value = "/uploadUser")
    public void changeUserInfo(@RequestBody Map<String, String> map) {
        String fileName = map.get("fileName");
        String fileNames = map.get("fileNames");
        uploadUserService.UploadUser(fileName, fileNames);
    }
}
